<?php

namespace common\models;

use Yii;

/**
 * This is the model class for table "package_transfer_history_init".
 *
 * @property string $id
 * @property string $package_id
 * @property string $transfer_date
 * @property string $transfer
 * @property string $content
 * @property string $remark
 * @property string $created_at
 * @property string $order
 */
class PackageTransferHistoryInit extends \yii\db\ActiveRecord
{
    /**
     * @inheritdoc
     */
    public static function tableName()
    {
        return 'package_transfer_history_init';
    }

    /**
     * @inheritdoc
     */
    public function rules()
    {
        return [
           // [['package_id', 'transfer_date', 'transfer', 'content', 'remark', 'order'], 'required'],
            [['package_id', 'order'], 'integer'],
            [['content', 'remark'], 'string'],
            [['created_at'], 'safe'],
            [['transfer_date', 'transfer'], 'string', 'max' => 255],
        ];
    }

    /**
     * @inheritdoc
     */
    public function attributeLabels()
    {
        return [
            'id' => 'ID',
            'package_id' => '资产包ID',
            'transfer_date' => '转让日期',
            'transfer' => '转让/处置方',
            'content' => '转让/处置内容',
            'remark' => '备注',
            'created_at' => '创建时间',
            'order' => '序号',
        ];
    }
}
